package com.lwq.seata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lwq.seata.entity.TAmount;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 刘文强
 * @since 2021-09-15
 */
public interface TAmountMapper extends BaseMapper<TAmount> {


    /**
     * 减金额
     *
     * @param userId
     * @param amount
     * @return
     */
    Integer decrementAmount(@Param("userId") Long userId, @Param("amount") Long amount);
}
